﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/QuizAdmin.Master" AutoEventWireup="true" CodeBehind="AddCategory.aspx.cs" Inherits="BladeTecWebApplication.Admin.AddCategory" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style2
        {
            width: 106px;
            height: 51px;
        }
        .style4
        {
            height: 51px;
        }
    </style>

	<script type="text/javascript">

		function validate() {
			if (Page_ClientValidate()) {
				$("#divRequired").hide();
			} else {
				$("#divRequired").show();
			}
		}
    </script>  

    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <span class="pageTitle">Add Category</span><br /><br />


<asp:Panel ID="pnlQuestionLevelForm" runat="server" Width="315px">
<div style="color: Red; display:none" id="divRequired">
	* Required<br /><br />
	</div>
<table style="border: 0px none;">

<tr>
<td valign="top">Category Name:<asp:RequiredFieldValidator ID="rfName" runat="server" ErrorMessage="*" ControlToValidate="txtCategoryName" ForeColor="Red"></asp:RequiredFieldValidator></td>
<td style="padding-bottom:10px;">
    <asp:TextBox ID="txtCategoryName" runat="server" CssClass="stdTextBox" 
        Width="150px" MaxLength="40"></asp:TextBox>
    </td>
</tr>

    <tr>
        <td colspan="2" style="text-align:right; border-top: 1px solid #666;padding-top:10px;">
            <asp:Button ID="btnAddCategory" runat="server" onclick="btnAddCategory_Click" OnClientClick="validate();"
                Text="Add" />
        </td>
    </tr>
    
</table>

    <asp:HiddenField ID="hflblCatID" runat="server" />

    </asp:Panel>


    <asp:Panel ID="pnlConfirmationForm" runat="server" Visible="False">
		The category was successfully added.
		<br /><br />
		<a class="dashboardLink" href="ViewCategory.aspx">View Categories</a>
    </asp:Panel>
</asp:Content>
